package com.example.airport.net.datarequest;

import java.util.Map;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

public interface IRequest {

  //get请求
    @GET("{path}")
    Call<ResponseBody> get(@Path(value = "path", encoded = true) String url);

    @POST("{path}")
    Call<ResponseBody> post(@Header("timestamp") long timestamp,@Path(value = "path", encoded = true) String url,@Body RequestBody info);


}
